<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    request.setAttribute("rootPath", basePath);
    session.setAttribute("rootPath", basePath);
%>


<!DOCTYPE html>
<html>
<head>
    <title>学情分析系统</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${rootPath}resources/css/main.css"/>
</head>
<body>

<div class="wrapper" id="divWrapper">
    <div class="header">
        <div class="leftTitle">
            <h1>学情分析系统 </h1>
        </div>

        <div class="userAvatar">
            <div id="portraits">
                <a href="javascript:void(0)" ><img id="userimg" src="${rootPath}resources/images/Avatar02.png"/></a>
            </div>
            <div id="pmenu">
                <ul>
                    <li><a href="">个人中心</a></li>
                    <li><a onclick="changeView('accountManagement')">账号管理</a></li>
                    <li><a href="/als">退出登录</a></li>
                </ul>
            </div>
        </div>


        <div class="rightContent">

            <ul class="headerUlLi">
                <li>
                    <a href=""> 关于我们</a>
                </li>
                <li>
                    <a id="loginName"  href="javascript:void(0)"> ${alsUser.username!=null?alsUser.username:""}</a>&nbsp;&nbsp;欢迎使用！
                </li>
            </ul>
        </div>
    </div>
    <div class="main">
        <div class="left">
            <!--树形菜单-->
            <ul id="menuMain" class="menuTreeMain">
                <li><a id="mainPageContent" onclick="changeView('mainPageContentServlet')">首页</a></li>
                <li id="importDataMain"><a >导入方案与成绩</a><span></span></li>


                <ul id="importData" class="menuTreeSecond">
                    <li onclick="changeView('importPlanServlet')">导入培养方案</li>
                    <li onclick="changeView('importDataScoreServlet')"> 导入学生成绩</li>

                </ul>

                <li id="creditScoreMain"><a >学分绩分布图</a><span></span></li>
                <ul id="creditScore" class="menuTreeSecond">

                    <li onclick="changeView('majorCreditScore')">专业学分绩</li>
                    <li onclick="changeView('clazzCreditScore')"> 班级学分绩</li>
                </ul>

                <li id="academicWarningMain"><a >查询学业预警</a><span></span></li>
                <ul id="academicWarning" class="menuTreeSecond">
                    <li onclick="changeView('academicWarning')">学生查询</li>

                </ul>
                <li id="systemSettingsMain"><a >系统设置</a><span></span></li>
                <ul id="systemSettings" class="menuTreeSecond">
                    <li onclick="changeView('accountManagement')">账号管理</li>
                    <li onclick="changeView('Announcement')">公告管理</li>
                    <li onclick="changeView('loginLog')">登录日志</li>
                </ul>


            </ul>
        </div>
        <div class="content" id="changeContent">
            <!--内容区-->

            <iframe id="contentCHJy" src="mainPageContentServlet" width="99%" height="99%"></iframe>

        </div>
    </div>
    <div class="footer">
        <label >© 2021 By 源梦科技</label>
    </div>
</div>

<script src="${rootPath}resources/js/main.js"></script>

</body>
</html>